package com.simtop.dao;


import com.simtop.pojo.wddata.Alarmre;
import com.simtop.pojo.wddata.AlarmreCord;
import com.simtop.vo.TyoeListVo;
import com.simtop.vo.TyoeListVos;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface AlarmerMapper {


    void insertOneAlarmer(AlarmreCord alarmreCord);

    int findByidandtype(@Param("deviceid") int deviceId, @Param("testtype") String testType);

    AlarmreCord finNewDeviceAlarmre(@Param("deviceid") int deviceId,@Param("testtype") String testType);

    void insertOnlyOneAlarmre(AlarmreCord alarmerCord);

    List<Alarmre> finOneAlarmre(@Param("op") String column, @Param("px") String order,
                                @Param("alarmTimeBegins") String alarmTimeBegins,@Param("alarmTimeEnds") String alarmTimeEnds,
                                @Param("alarmType") String alarmType,@Param("alarmManage") Integer alarmManage);

    void deleteStatus(@Param("id") Integer id);

    void deleteStatus2(@Param("sqsyidlist") ArrayList<Integer> sqsyidlist);

    void changeDeviceData(@Param("id") String id,@Param("remark") String remark);

    int getOne(@Param("deviceId") int deviceId ,@Param("timenew") String timenew);

    int countAlarmer1();

    int countAlarmer2();

    List<String> findEverDay();

    List<TyoeListVos> findBytime(@Param("time") String time);

    List<Alarmre> updateExlxDeviceAlarDataAll();

    List<Alarmre> findalarmreServer(@Param("sqsyidlist") ArrayList<Integer> sqsyidlist);

    int findOne(@Param("as") String as);

    int findTwo(@Param("as") String as);

    int findThree(@Param("as") String as);

    int findFor(@Param("as") String as);

    void deleteOneAlarmres(@Param("alarmTimeBegins") String alarmTimeBegins,@Param("alarmTimeEnds") String alarmTimeEnds,
                           @Param("alarmType") String alarmType,@Param("alarmManage") Integer alarmManage);

    void deletename(@Param("deviceName1") String deviceName1);

    void deletename2(@Param("deviceName1") String deviceName1);

    void deleteAlarmres(@Param("alarmTimeBegins") String alarmTimeBegins,
                        @Param("alarmTimeEnds") String alarmTimeEnds,
                        @Param("deviceNumber") String deviceNumber,
                        @Param("testType") String testType);
}
